Javascript array best practice to use [] instead of new array?
Posted
by AlfaTeK
on Stack Overflow
See other posts from Stack Overflow
or by AlfaTeK
Published on 2010-05-31T15:10:49Z
Indexed on
2010/05/31
15:12 UTC
Read the original article
Hit count: 189
JavaScript
I read at many tutorials that the current best practices to create a new javascript array is to use "var arr = []" instead of "var arr = new Array()".
What's the reasoning behind that?
© Stack Overflow or respective owner